Setting Debugging Properties in Visual Studio
When you select an RTX64 Real-Time Debugger in Visual Studio, additional debugging options are displayed in the Property Pages for the application. You can:
- Set the ideal processor on which the main thread of the debugged process will run.
- Set the affinity mask that specifies the processor(s) on which the debugged process will run.
To set debugging properties:
- Right-click on the application name in the Solution Explorer window. The Property Pages dialog appears.
- Click Configuration Properties > Debugging.
- Under Debugger to launch, choose one of the RTX64 Real-Time Debugger options:
- RTX64 Remote Real-Time Debugger – use to debug RTSS applications on a target system remotely. See Remote Debugging with Visual Studio for more information.
- RTX64 Real-Time Debugger – use to debug RTSS applications. Note that this debugger is automatically selected when the RTSSDebug configuration of the project is selected.
- Configure the debugging properties:
- Processor – sets the ideal processor on which the main thread of the debugged process will run. Use an integer to identify the processor and be sure to use its system-wide processor number.
- Affinity – sets the affinity mask as a list of comma-separated processor numbers. This specifies the processor(s) on which the debugged process will run. Use integers to identify the processors and be sure to use system-wide processor numbers. The main thread of the debugged process will start on the ideal processor if set. If the ideal processor is not set, the main thread will run on the first RTSS processor in the provided affinity mask.
For example: 2,3
NOTE: The Subsystem determines whether any of the specified processors are valid and will use only valid processors from a given affinity mask. An error is returned if no valid processors are given.
- Click OK.
- Save the project.